package com.mall.platform.service;

import com.mall.platform.model.DataResult;
import com.mall.platform.model.req.AddCartRequest;
import com.mall.platform.model.res.CartDto;

public interface CartService {
    /**
     * 获取购物车信息
     * @param userCode
     * @return
     */
    DataResult<CartDto> getCart(String userCode);

    /**
     * 添加用户的购物车
     * @param addCartRequest
     * @return
     */
    DataResult addCart(AddCartRequest addCartRequest);
}
